From: Andreas Schwab Date: Mon, 2 Dec 2002 23:30:54 +0000 (+0000) Subject: (Fcall_interactively): Use next_event only if less X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~54288 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=170d30061f47f6adc265bff731fb1f170c9eee5f;p=emacs.git (Fcall_interactively): Use next_event only if less than key_count. --- diff --git a/src/callint.c b/src/callint.c index b4b1e198544..4552b2274b1 100644 --- a/src/callint.c +++ b/src/callint.c @@ -409,7 +409,9 @@ supply if the command inquires which events were used to invoke it. */) { Lisp_Object event; - event = XVECTOR (keys)->contents[next_event]; + event = (next_event < key_count + ? XVECTOR (keys)->contents[next_event] + : Qnil); if (EVENT_HAS_PARAMETERS (event) && (event = XCDR (event), CONSP (event)) && (event = XCAR (event), CONSP (event))